﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Admin_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>EasyCMS后台管理</title>
    <link href="/Skins/Admin/Styles/Common/reset.css" rel="stylesheet" type="text/css" />
    <link href="/Skins/Admin/Styles/Common/global.css" rel="stylesheet" type="text/css" />
    <link href="/Skins/Admin/Styles/Common/layout.css" rel="stylesheet" type="text/css" />
    <link href="/Packages/jquery-liger-ui-v1.1.9/skins/Aqua/css/ligerui-all.css" rel="stylesheet"
        type="text/css" />
    <script src="/Packages/jquery-1.4.1/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="/Packages/jquery-liger-ui-v1.1.9/js/ligerui.min.js" type="text/javascript"></script>
    <script src="/Packages/jquery-liger-ui-v1.1.9/js/plugins/ligerLayout.js" type="text/javascript"></script>
    <script src="/Packages/jquery-liger-ui-v1.1.9/js/plugins/ligerTab.js" type="text/javascript"></script>
    <script type="text/javascript">
        //几个布局的对象
        var layout, tab, menu;
        //tabid计数器，保证tabid不会重复
        var tabidcounter = 0;
        //增加tab项的函数
        function addTab(tabid, text, url) {
            if (!tab) return;
            if (!tabid) {
                tabidcounter++;
                tabid = "tabid" + tabidcounter;
            }
            tab.addTabItem({ tabid: tabid, text: text, url: url });
        }




        $(document).ready(function () {
            layout = $("#wrapper").ligerLayout({ leftWidth: 200 });
            var bodyHeight = $(".l-layout-center:first").height();
            menu = $("#menu").ligerAccordion({ height: bodyHeight - 24, speed: null });
            tab = $("#center").ligerTab({ height: bodyHeight, contextmenu: true });

            //菜单初始化
            $(".menu-sub-list li").live("click", function () {
                var jitem = $(this);
                var tabid = jitem.attr("tabid");
                var url = jitem.attr("url");
                if (!url) return;
                if (!tabid) {
                    tabidcounter++;
                    tabid = "tabid" + tabidcounter;
                    jitem.attr("tabid", tabid);

                    //给url附加menuno
                    if (url.indexOf('?') > -1) url += "&";
                    else url += "?";
                    url += "MenuNo=" + jitem.attr("data-menu-no");
                    jitem.attr("url", url);
                }
                addTab(tabid, $("span:first", jitem).html(), url);
            });

            addTab(0, "欢迎", "Welcome.aspx");
        });
    </script>
</head>
<body style="padding: 10px">
    <form id="form1" runat="server">
    <div id="wrapper">
        <div position="top">
            <h1 style="margin: 15px;">
                EasyCMS</h1>
        </div>
        <div position="left" title="功能菜单" id="menu" class="menu">
            <div title="系统管理">
                <ul class="menu-sub-list">
                    <li url="http://www.baidu.com" data-menu-no="11"><span>页面管理</span><div class="menu-item-l">
                    </div>
                        <div class="menu-item-r">
                        </div>
                    </li>
                    <li url="http://www.baidu.com" data-menu-no="12"><span>模块管理</span><div class="menu-item-l">
                    </div>
                        <div class="menu-item-r">
                        </div>
                    </li>
                </ul>
            </div>
            <div title="新闻管理">
                <ul class="menu-sub-list">
                    <li url="http://www.baidu.com" data-menu-no="21"><span>栏目管理</span><div class="menu-item-l">
                    </div>
                        <div class="menu-item-r">
                        </div>
                    </li>
                    <li url="http://www.baidu.com" data-menu-no="22"><span>专题管理</span><div class="menu-item-l">
                    </div>
                        <div class="menu-item-r">
                        </div>
                    </li>
                </ul>
            </div>
        </div>
        <div position="center" id="center">
        </div>
        <div position="bottom" style="text-align: center; line-height: 45px; height: 45px;">
            Copyright © 2011-2013 www.easy-cms.com
        </div>
    </div>
    </form>
</body>
</html>
